package com.scott.utils;

import java.util.UUID;

public class UUIDUtil {

    private static String uuid=  UUID.randomUUID().toString();

    public static String getKey(){
        if(uuid.contains("/")){
            System.out.println("uuid="+uuid);
            uuid.replaceAll("/","0");
            uuid.replaceAll("-","0");

        }
        return "/"+uuid.substring(0,8);
    }
    public static byte[] getValue(){
        String rs = uuid.replaceAll("-","scott");
        return rs.getBytes();
    }
}
